﻿package plugin.duanzao
{
    import com.core.*;

    public class QiangHuaControl extends Control
    {

        public function QiangHuaControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        public function open() : void
        {
            return;
        }// end function

        public function close() : void
        {
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "qianghua")
            {
                if (param2.property == "init")
                {
                }
                else if (param2.property == "setvisible")
                {
                    this.target.qianghuaView.setVisible();
                }
                else if (param2.property == "qianghua")
                {
                    this.target.qianghuaView.qiangHuaSuc(param2.newvalue);
                }
                else if (param2.property == "show")
                {
                    this.target.show(param2.newvalue);
                }
                else if (param2.property == "zs")
                {
                }
                else if (param2.property == "clickitem")
                {
                    this.target.itemClick(param2.newvalue);
                }
                else if (param2.property == "showitem")
                {
                    this.target.qianghuaView.showItem(param2.newvalue);
                }
                else if (param2.property == "initpanel")
                {
                    this.target.initPanelShow();
                }
                else if (param2.property == "zyqhback")
                {
                    this.target.zhuanyiView.zyqhback();
                }
                else if (param2.property == "updatearm")
                {
                    this.target.updateArm();
                }
                else if (param2.property == "changedata")
                {
                    this.target.changeData(param2.newvalue.type, param2.newvalue.data);
                }
                else if (param2.property == "zdgm")
                {
                    this.target.qianghuaView.zdgm();
                }
                else if (param2.property == "Qqsbuzupc")
                {
                    this.target.qianghuaView.Qqsbuzupc(param2.newvalue);
                }
                else if (param2.property == "cleardata")
                {
                    this.target.clearDate();
                }
                else if (param2.property == "updatecount")
                {
                }
                else if (param2.property == "shenjiInto")
                {
                }
                else if (param2.property == "intoitem")
                {
                }
                else if (param2.property == "reshow")
                {
                }
                else if (param2.property == "updatecost")
                {
                    if (this.target.HC_TypeIndex == 1)
                    {
                        this.target.zhuangbei_hechengView.updatecosts();
                    }
                    if (this.target.HC_TypeIndex == 2)
                    {
                        this.target.daoju_hechengView.updatecosts();
                    }
                }
                else if (param2.property == "updateCompound")
                {
                    if (this.target.HC_TypeIndex == 1)
                    {
                        this.target.zhuangbei_hechengView.updateCompounds();
                    }
                    if (this.target.HC_TypeIndex == 2)
                    {
                        this.target.daoju_hechengView.updateCompounds();
                    }
                }
                else if (param2.property == "sucess")
                {
                    if (this.target.HC_TypeIndex == 1)
                    {
                        this.target.zhuangbei_hechengView.sucess(param2.newvalue);
                    }
                    if (this.target.HC_TypeIndex == 2)
                    {
                        this.target.daoju_hechengView.sucess(param2.newvalue);
                    }
                }
                else if (param2.property == "yijianhec")
                {
                    this.target.zhuangbei_hechengView.YJsucess();
                }
                else if (param2.property == "updatelevel")
                {
                    this.target.updateLevel();
                }
            }
            else if (param1.getName() == "jianding")
            {
                if (param2.property == "updatearm")
                {
                    this.target.jiandingView.updateArm();
                }
                else if (param2.property == "appraisal")
                {
                    this.target.jiandingView.jianDing(param2.newvalue);
                }
            }
            return;
        }// end function

    }
}
